<template>
  <div id="app">   	
    <router-view></router-view>
  </div>
 	 
</template>

<script>
import {mapState} from 'vuex'
export default {
  	name: 'app',
  	data() {
            return {}
        },
        
        computed: {
            ...mapState(['inquiryDataList','fromRecordsPageFlag','continueFlag']),
        },
        mounted() {
        		
        },
        methods: {
           
        },
        watch: {
            $route(to, from) {
                if (to.path === '/'  && from.path.indexOf("/result")>=0){
				     this.$store.dispatch('inquiryDataListFn',this.inquiryDataList);
				     this.$store.dispatch('continueFlagFn',true)				     
				}else if (to.path === '/'  && from.path == '/records'){
				     this.$store.dispatch('inquiryDataListFn',this.inquiryDataList);
				     this.$store.dispatch('fromRecordsPageFlagFn',true)				     
				}              
            }
        },

	}
</script>

<style>
#app {
  font-family: "PingFangSC-Regular","PingFang SC"!important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #1E2C3E;
}
</style>
<style lang="less">
	@import '~vux/src/styles/reset.less';
</style>
